.class public Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;
.super Ljava/lang/Object;
.source "TrimUtil.java"


# direct methods
.method public static a(Les/cd;J)J
    .locals 0

    if-nez p0, :cond_0

    return-wide p1

    .line 15
    :cond_0
    invoke-static {p0, p1, p2}, Les/rd;->a(Les/cd;J)J

    move-result-wide p0

    return-wide p0
.end method

.method public static a(Les/cd;JJ)J
    .locals 2

    if-eqz p0, :cond_1

    .line 16
    invoke-static {p0, p1, p2}, Les/rd;->b(Les/cd;J)J

    move-result-wide p0

    const-wide/16 v0, 0x0

    cmp-long p2, p0, v0

    if-gez p2, :cond_0

    move-wide p1, v0

    goto :goto_0

    :cond_0
    move-wide p1, p0

    :goto_0
    cmp-long p0, p1, p3

    if-lez p0, :cond_1

    move-wide p1, p3

    :cond_1
    return-wide p1
.end method

.method public static a(Les/cd;II)V
    .locals 5

    .line 1
    iget-object v0, p0, Les/cd;->d:Les/cd$i;

    if-eqz v0, :cond_2

    iget-object v0, v0, Les/cd$i;->a:Ljava/util/List;

    if-nez v0, :cond_0

    goto :goto_1

    .line 2
    :cond_0
    iget-object v0, p0, Les/cd;->c:Les/cd$m;

    if-nez v0, :cond_1

    .line 3
    new-instance v0, Les/cd$m;

    invoke-direct {v0}, Les/cd$m;-><init>()V

    iput-object v0, p0, Les/cd;->c:Les/cd$m;

    .line 4
    :cond_1
    iget-object v0, p0, Les/cd;->c:Les/cd$m;

    .line 5
    new-instance v1, Les/cd$m;

    invoke-direct {v1}, Les/cd$m;-><init>()V

    int-to-long v2, p1

    .line 6
    iput-wide v2, v1, Les/cd$m;->a:J

    int-to-long p1, p2

    .line 7
    iput-wide p1, v1, Les/cd$m;->b:J

    .line 8
    iget-object p1, p0, Les/cd;->d:Les/cd$i;

    iget-object p1, p1, Les/cd$i;->a:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/cd$j;

    .line 9
    iget-wide v2, p2, Les/cd$j;->f:J

    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v0, v2, v3, v4}, Les/rd;->b(Les/cd$m;JLes/cd$o;)J

    move-result-wide v2

    .line 10
    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v1, v2, v3, v4}, Les/rd;->c(Les/cd$m;JLes/cd$o;)J

    move-result-wide v2

    .line 11
    iput-wide v2, p2, Les/cd$j;->f:J

    .line 12
    iget-wide v2, p2, Les/cd$j;->g:J

    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v0, v2, v3, v4}, Les/rd;->b(Les/cd$m;JLes/cd$o;)J

    move-result-wide v2

    .line 13
    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v1, v2, v3, v4}, Les/rd;->c(Les/cd$m;JLes/cd$o;)J

    move-result-wide v2

    .line 14
    iput-wide v2, p2, Les/cd$j;->g:J

    goto :goto_0

    :cond_2
    :goto_1
    return-void
.end method

.method public static b(Les/cd;II)V
    .locals 5

    .line 1
    iget-object v0, p0, Les/cd;->d:Les/cd$i;

    if-eqz v0, :cond_2

    iget-object v0, v0, Les/cd$i;->a:Ljava/util/List;

    if-nez v0, :cond_0

    goto :goto_1

    .line 2
    :cond_0
    iget-object v0, p0, Les/cd;->b:Les/cd$s;

    if-nez v0, :cond_1

    .line 3
    new-instance v0, Les/cd$s;

    invoke-direct {v0}, Les/cd$s;-><init>()V

    iput-object v0, p0, Les/cd;->b:Les/cd$s;

    .line 4
    :cond_1
    iget-object v0, p0, Les/cd;->b:Les/cd$s;

    .line 5
    new-instance v1, Les/cd$s;

    invoke-direct {v1}, Les/cd$s;-><init>()V

    int-to-long v2, p1

    .line 6
    iput-wide v2, v1, Les/cd$s;->a:J

    int-to-long p1, p2

    .line 7
    iput-wide p1, v1, Les/cd$s;->b:J

    .line 8
    iget-object p1, p0, Les/cd;->d:Les/cd$i;

    iget-object p1, p1, Les/cd$i;->a:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/cd$j;

    .line 9
    iget-wide v2, p2, Les/cd$j;->f:J

    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v0, v2, v3, v4}, Les/rd;->a(Les/cd$s;JLes/cd$o;)J

    move-result-wide v2

    .line 10
    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v1, v2, v3, v4}, Les/rd;->b(Les/cd$s;JLes/cd$o;)J

    move-result-wide v2

    .line 11
    iput-wide v2, p2, Les/cd$j;->f:J

    .line 12
    iget-wide v2, p2, Les/cd$j;->g:J

    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v0, v2, v3, v4}, Les/rd;->a(Les/cd$s;JLes/cd$o;)J

    move-result-wide v2

    .line 13
    iget-object v4, p0, Les/cd;->k:Les/cd$o;

    invoke-static {v1, v2, v3, v4}, Les/rd;->b(Les/cd$s;JLes/cd$o;)J

    move-result-wide v2

    .line 14
    iput-wide v2, p2, Les/cd$j;->g:J

    goto :goto_0

    :cond_2
    :goto_1
    return-void
.end method
